import {useRef,useEffect} from 'react'

function useRefHook(props){
    const ref1=useRef(null)
    useEffect(()=>{
        console.log(ref1);
    },[])
    return(
        <div>
            <h1 ref={ref1}>this is ref1</h1>
        </div>
    )
}

export default useRefHook